package com.strato.mvc.security.v1_0_0.api;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.strato.mvc.api.v1_0_0.user.Principal;

public interface AuthenticationService {

	Principal validate(String ticket);

	String extractTicket(HttpServletRequest request);

	public Object extractUser(Principal user);

	void onUnauthenticated(HttpServletRequest request, HttpServletResponse response);
}
